﻿<?xml version="1.0" encoding="UTF-8"?>
<modification application="Heroes of Newerth" appversion="*" mmversion="1.3" name="Default channel leaver" version="3.0.3.19" description="Annoyed of those default chat channels you join every time (e.g. HoN 1337 or Match 31337 or Group 666 or Stream Angrytestie)? This mod will automatically leave those channels for you." author="Mertsch" weblink="http://forums.heroesofnewerth.com/showthread.php?p=875460" updatecheckurl="http://dl.dropbox.com/u/4847480/DefaultChannelLeaver/Version.txt" updatedownloadurl="http://dl.dropbox.com/u/4847480/DefaultChannelLeaver/DefaultChannelLeaver.honmod">
  <incompatibility name="Lord's Menu" version="*" />
  <!-- Copy files -->
  <copyfile name="ui/DefaultChannelLeaverOptions.package" />
  <copyfile name="ui/scripts/communicatorextensions.lua" />
  <!-- Install core component -->
  <editfile name="ui/fe2/communicator.package">
    <find><![CDATA[communicator.lua"/>]]></find>
    <insert position="after"><![CDATA[
    <lua file="/ui/scripts/communicatorextensions.lua"/>
]]></insert>
    <find><![CDATA[panel name="communicator_main"]]></find>
    <find><![CDATA[>]]></find>
    <insert position="after"><![CDATA[
    <panel name="CommunicatorExtensionPanel" noclick="1"
           oninstantiate="DoEvent(0);"
			     onevent0lua="CommunicatorExtensionInitalize(self)"/>
]]></insert>
  </editfile>
  <!-- Install mod options -->
  <editfile name="ui/mod_options_elements.package">
    <find><![CDATA[<!-- INSERT AFTER THIS -->]]></find>
    <insert position="after"><![CDATA[
    <include file="DefaultChannelLeaverOptions.package"/>]]></insert>
  </editfile>
</modification>